//
// Copyright(c) 2004-2005 BroadVision, Inc. All rights reserved.
//
// This software is copyrighted.  Under the copyright laws, this software
// may not be copied, in whole or in part, without prior written consent
// of BroadVision, Inc. or its assignees. This software is provided under
// the terms of a license between BroadVision and the recipient, and its
// use is subject to the terms of that license.
//
// This software may be protected by one or more U.S. and International
// patents. Certain applications of BroadVision One-To-One software are
// covered by U.S. patent 5,710,887.
//
// TRADEMARKS: BroadVision and the BroadVision logo are registered
// trademarks, and BroadVision One-To-One is a trademark of BroadVision,
// Inc. IONA and Orbix are trademarks of IONA Technologies, Ltd. RSA,
// MD5, and RC2 are trademarks of RSA Data Security, Inc. All other
// trademarks, service marks, and trade names belong to their respective
// owners. BroadVision, Inc. disclaims any proprietary interest in the
// marks and names of others.
//


// Checks whether the browser is Netscape.
function isNetscape() {
  var appName = navigator.appName;
  if ( appName.indexOf( 'Netscape' ) != -1 ) return true;
  else return false;
}

// Checks whether the browser is Microsoft Internet Explorer
function isIE() {
  var appName = navigator.appName;
  if ( appName.indexOf( 'Microsoft' ) != -1 ) return true;
  else return false;

}

//Checks whether the browser is FireFox or not.
function isFireFox() {
 return navigator.userAgent != null && navigator.userAgent.indexOf( "Firefox/" ) != -1;
}

// Gets browser's version.
function getBrowserVersion() {
  var version = navigator.appVersion;
  return version.substring( 0, 1 );
}

